import request from '@/utils/request'

// 账户列表
export function accountList(params: any) {
    return request.get({ url: '/user.integral/accountList', params })
}

// 禁用
export function setNoticeConfig(params: any) {
    return request.post({ url: '/user.integral/setStatus', params })
}

// 积分列表
export function integralList(params: any) {
    return request.post({ url: '/user.integral/integralList', params })
}

// 资讯列表
export function news_lists(params: any) {
    return request.post({ url: '/news/lists', params })
}

// 添加保存资讯
export function news_save(params: any) {
    return request.post({ url: '/news/save', params })
}

// 资讯详情
export function news_details(params: any) {
    return request.post({ url: '/news/details', params })
}

// 删除资讯
export function news_delete(params: any) {
    return request.post({ url: '/news/delete', params })
}

// 补贴列表
export function subsidyList(params: any) {
    return request.get({ url: '/product.product/subsidyList', params })
}
// 补贴详情
export function subsidyInfo(params: any) {
    return request.get({ url: '/product.product/subsidyInfo', params })
}
// 保存补贴
export function saveSubsidy(params: any) {
    return request.post({ url: '/product.product/saveSubsidy', params })
}
// 删除补贴
export function delSubsidy(params: any) {
    return request.post({ url: '/product.product/delSubsidy', params })
}
// 搜索产品对应的渠道
export function searchChannel(params: any) {
    return request.get({ url: '/product.product/searchChannel', params })
}

// 活动页列表
export function imgLists(params: any) {
    return request.get({ url: '/pages/pageList', params })
}
// 保存活动页
export function imgSave(params: any) {
    return request.post({ url: '/pages/savePage', params })
}
// 删除活动页
export function imgDelete(params: any) {
    return request.post({ url: '/pages/delPage', params })
}
//活动页详细数据
export function imgDetail(params: any) {
    return request.get({ url: '/pages/lists', params })
}
// 保存活动页详细
export function imgDetailSave(params: any) {
    return request.post({ url: '/pages/save', params })
}